import Vue from 'vue'

import App from './App.vue'

import TypeNav from '@/components/TypeNav'

import Pagination from '@/components/Pagination'

import store from '@/store'

import '@/mock/mockServe';

import * as API from '@/api'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';



Vue.use(ElementUI);
Vue.config.productionTip = false

Vue.component(TypeNav.name,TypeNav)
Vue.component(Pagination.name,Pagination)

import "@/swiper/swiper-bundle.css"

import v from '@/assets/1.gif'

import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload,{
  loading:v
})

import router from '@/router'
new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this
    Vue.prototype.$API = API
  },
  router,
  store
}).$mount('#app')
